/* ==========================================================
   SPEAKUP AI
   COMMUNITY PAGE
   PART 1
========================================================== */


/* ==========================================
   COMMUNITY HEADER
========================================== */

.community-header{

    margin-bottom:35px;

}

.community-header h1{

    font-size:42px;

    font-weight:800;

    color:#111827;

    margin-top:14px;

}

.community-header p{

    max-width:700px;

    margin-top:12px;

    color:#6b7280;

    font-size:17px;

    line-height:1.7;

}



/* ==========================================
   CATEGORY BAR
========================================== */

.category-bar{

    display:flex;

    gap:14px;

    overflow-x:auto;

    padding-bottom:18px;

    margin-bottom:35px;

    scrollbar-width:none;

}

.category-bar::-webkit-scrollbar{

    display:none;

}

.category{

    border:none;

    background:white;

    border:1px solid #e5e7eb;

    padding:12px 22px;

    border-radius:999px;

    cursor:pointer;

    white-space:nowrap;

    font-size:15px;

    font-weight:600;

    transition:.25s;

}

.category:hover{

    background:#eef2ff;

    color:#4f46e5;

    border-color:#4f46e5;

}

.category.active{

    background:#4f46e5;

    color:white;

    border-color:#4f46e5;

}



/* ==========================================
   REELS FEED
========================================== */

.reels-feed{

    display:flex;

    flex-direction:column;

    align-items:center;

    gap:50px;

    padding-bottom:80px;

}



/* ==========================================
   REEL CARD
========================================== */

.reel-card{

    position:relative;

    width:100%;

    max-width:900px;

    background:white;

    border-radius:24px;

    overflow:hidden;

    border:1px solid #e5e7eb;

    box-shadow:0 15px 40px rgba(0,0,0,.08);

    transition:.3s;

}

.reel-card:hover{

    transform:translateY(-6px);

    box-shadow:0 25px 55px rgba(0,0,0,.12);

}



/* ==========================================
   VIDEO CONTAINER
========================================== */

.video-container{

    position:relative;

    width:100%;

    height:700px;

    background:#000;

}

.video-container iframe{

    width:100%;

    height:100%;

    border:none;

}



/* ==========================================
   OVERLAY
========================================== */

.reel-overlay{

    position:absolute;

    left:0;

    right:0;

    bottom:0;

    display:flex;

    justify-content:space-between;

    align-items:flex-end;

    padding:35px;

    background:linear-gradient(

        transparent,

        rgba(0,0,0,.82)

    );

}



/* ==========================================
   SPEAKER INFO
========================================== */

.speaker-info{

    color:white;

    max-width:70%;

}

.speaker-info h2{

    font-size:28px;

    font-weight:700;

    margin-bottom:10px;

}

.speaker-info p{

    color:#e5e7eb;

    line-height:1.6;

    font-size:16px;

}



/* ==========================================
   ACTION BUTTONS
========================================== */

.reel-actions{

    display:flex;

    flex-direction:column;

    gap:18px;

    align-items:center;

}

.action-btn{

    width:72px;

    height:72px;

    border:none;

    border-radius:50%;

    background:rgba(255,255,255,.12);

    backdrop-filter:blur(12px);

    color:white;

    cursor:pointer;

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    gap:6px;

    transition:.25s;

}

.action-btn i{

    font-size:22px;

}

.action-btn span{

    font-size:13px;

    font-weight:600;

}

.action-btn:hover{

    transform:scale(1.08);

    background:#4f46e5;

}



/* ==========================================
   ANALYSIS BUTTON
========================================== */

.analysis-btn{

    width:90px;

    height:90px;

    border-radius:18px;

    font-size:13px;

    font-weight:700;

    padding:10px;

}

/* ==========================================================
   SPEAKUP AI
   COMMUNITY PAGE
   PART 2
========================================================== */


/* ==========================================
   AI ANALYSIS MODAL
========================================== */

.analysis-modal{

    position:fixed;

    inset:0;

    background:rgba(0,0,0,.65);

    display:flex;

    justify-content:center;

    align-items:center;

    visibility:hidden;

    opacity:0;

    transition:.3s;

    z-index:999;

}

.analysis-modal.show{

    visibility:visible;

    opacity:1;

}



/* ==========================================
   MODAL CONTENT
========================================== */

.analysis-content{

    width:90%;

    max-width:850px;

    background:white;

    border-radius:24px;

    padding:35px;

    position:relative;

    animation:modalPop .3s ease;

    box-shadow:0 30px 60px rgba(0,0,0,.25);

}



/* ==========================================
   CLOSE BUTTON
========================================== */

.close-analysis{

    position:absolute;

    top:20px;

    right:25px;

    font-size:28px;

    cursor:pointer;

    color:#6b7280;

    transition:.25s;

}

.close-analysis:hover{

    color:#ef4444;

    transform:rotate(90deg);

}



/* ==========================================
   SCORE
========================================== */

.analysis-score{

    text-align:center;

    margin:30px 0;

}

.analysis-score h1{

    font-size:72px;

    color:#4f46e5;

    font-weight:800;

    line-height:1;

}

.analysis-score span{

    font-size:24px;

    color:#6b7280;

}



/* ==========================================
   ANALYSIS GRID
========================================== */

.analysis-grid{

    display:grid;

    grid-template-columns:repeat(3,1fr);

    gap:18px;

    margin-top:35px;

}

.analysis-box{

    background:#f8fafc;

    border:1px solid #e5e7eb;

    border-radius:18px;

    padding:24px;

    text-align:center;

    transition:.25s;

}

.analysis-box:hover{

    transform:translateY(-5px);

    background:#eef2ff;

}

.analysis-box h3{

    color:#374151;

    margin-bottom:12px;

    font-size:17px;

}

.analysis-box span{

    font-size:30px;

    font-weight:700;

    color:#4f46e5;

}



/* ==========================================
   FEEDBACK
========================================== */

.analysis-feedback{

    margin-top:35px;

}

.analysis-feedback h3{

    margin-bottom:16px;

    color:#111827;

}

.analysis-feedback ul{

    list-style:none;

    display:flex;

    flex-direction:column;

    gap:12px;

}

.analysis-feedback li{

    padding:14px 18px;

    background:#f9fafb;

    border-left:5px solid #4f46e5;

    border-radius:10px;

    color:#374151;

}



/* ==========================================
   REELS SCROLL SNAP
========================================== */

.reels-feed{

    scroll-snap-type:y mandatory;

}

.reel-card{

    scroll-snap-align:start;

}



/* ==========================================
   VIDEO HOVER
========================================== */

.video-container{

    overflow:hidden;

}

.video-container iframe{

    transition:.35s;

}

.reel-card:hover iframe{

    transform:scale(1.02);

}



/* ==========================================
   CUSTOM SCROLLBAR
========================================== */

::-webkit-scrollbar{

    width:10px;

}

::-webkit-scrollbar-thumb{

    background:#c7d2fe;

    border-radius:999px;

}

::-webkit-scrollbar-thumb:hover{

    background:#818cf8;

}



/* ==========================================
   MODAL ANIMATION
========================================== */

@keyframes modalPop{

    from{

        opacity:0;

        transform:scale(.92);

    }

    to{

        opacity:1;

        transform:scale(1);

    }

}



/* ==========================================
   REEL ANIMATION
========================================== */

@keyframes reelFade{

    from{

        opacity:0;

        transform:translateY(40px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

.reel-card{

    animation:reelFade .55s ease;

}



/* ==========================================
   RESPONSIVE
========================================== */

@media(max-width:1000px){

    .video-container{

        height:600px;

    }

}

@media(max-width:768px){

    .video-container{

        height:500px;

    }

    .reel-overlay{

        flex-direction:column;

        align-items:flex-start;

        gap:20px;

    }

    .speaker-info{

        max-width:100%;

    }

    .reel-actions{

        flex-direction:row;

    }

    .analysis-grid{

        grid-template-columns:repeat(2,1fr);

    }

}

@media(max-width:500px){

    .community-header h1{

        font-size:32px;

    }

    .video-container{

        height:420px;

    }

    .analysis-grid{

        grid-template-columns:1fr;

    }

    .analysis-content{

        padding:25px;

    }

    .analysis-score h1{

        font-size:56px;

    }

}